Lua Source Registers
Name Start Address Type Access
LUA_SOURCE_SIZE 6012 UINT32 R/W
LUA_SOURCE_WRITE 6014 BYTE W
LUA_SAVE_TO_FLASH 6032 UINT32 R/W
LUA_LOAD_SAVED 6034 UINT32 W
LUA_SOURCE_SIZE
- Address: 6012
Allocates RAM for the source code.
  • Data type: UINT32  (type index = 1)
  • Readable and writable
  • This register uses system RAM. The maximum RAM is 64KB. For more information, see 4.4 RAM
  • T8:
  • T7:
LUA_SOURCE_WRITE
- Address: 6014
Write the source code here. Source will be saved to the RAM allocated by LUA_SOURCE_SIZE. This register is a buffer.
  • Data type: BYTE  (type index = 99)
  • Write-only
  • This register is a Buffer Register
  • T8:
  • T7:
LUA_SAVE_TO_FLASH
- Address: 6032
Write 1 to save the loaded source code to flash.
  • Data type: UINT32  (type index = 1)
  • Readable and writable
  • T8:
  • T7:
LUA_LOAD_SAVED
- Address: 6034
Writing any value reads the script from Flash and loads it into RAM. The script can now be compiled and run.
  • Data type: UINT32  (type index = 1)
  • Write-only
  • T8:
  • T7: